home *** CD-ROM | disk | FTP | other *** search
- package com.ms.dxmedia;
-
- import com.ms.com.ComFailException;
- import com.ms.dxmedia.rawcom.IDABehavior;
- import java.io.PrintStream;
-
- public class Behavior {
- private IDABehavior _COMBvrPtr;
-
- public Behavior bvrHook(BvrCallback var1) {
- try {
- return Statics.makeBvrFromInterface(this.getCOMBvr().Hook(new BvrCallbackCOM(var1)));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public IDABehavior getCOMBvr() {
- return this._COMBvrPtr;
- }
-
- void setCOMBvr(IDABehavior var1) {
- this._COMBvrPtr = var1;
- }
-
- public Behavior substituteTime(NumberBvr var1) {
- return Statics.makeBvrFromInterface(this._COMBvrPtr.SubstituteTime(var1.getCOMPtr()));
- }
-
- public Behavior repeat(int var1) {
- try {
- return Statics.makeBvrFromInterface(this.getCOMBvr().Repeat(var1));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public Behavior debug(String var1, boolean var2, PrintStream var3) {
- return this.bvrHook(new DXMDebugCallback(var1, var2, var3));
- }
-
- public Behavior debug() {
- return this.debug("", false, System.out);
- }
-
- public Behavior debug(String var1) {
- return this.debug(var1, false, System.out);
- }
-
- public Behavior(IDABehavior var1) {
- this._COMBvrPtr = var1;
- }
-
- public Behavior debug(String var1, boolean var2) {
- return this.debug(var1, var2, System.out);
- }
-
- protected Behavior newUninitBehavior() {
- throw new DXMException(-2147024809, "illegal type for newUninitBehavior");
- }
-
- public Behavior repeatForever() {
- try {
- return Statics.makeBvrFromInterface(this.getCOMBvr().RepeatForever());
- } catch (ComFailException var3) {
- throw StaticsBase.handleError(var3);
- }
- }
-
- public Behavior importance(double var1) {
- try {
- IDABehavior var3 = this._COMBvrPtr.Importance(var1);
- return Statics.makeBvrFromInterface(var3);
- } catch (ComFailException var5) {
- throw StaticsBase.handleError(var5);
- }
- }
-
- public Object extract() {
- throw new DXMException(-2147024809, "illegal type for extract");
- }
-
- public Behavior duration(NumberBvr var1) {
- try {
- return Statics.makeBvrFromInterface(this.getCOMBvr().DurationAnim(var1.getCOMPtr()));
- } catch (ComFailException var4) {
- throw StaticsBase.handleError(var4);
- }
- }
-
- public Behavior duration(double var1) {
- try {
- return Statics.makeBvrFromInterface(this.getCOMBvr().Duration(var1));
- } catch (ComFailException var5) {
- throw StaticsBase.handleError(var5);
- }
- }
-
- public void init(Behavior var1) {
- this._COMBvrPtr.Init(var1.getCOMBvr());
- }
-
- public Behavior runOnce() {
- return Statics.makeBvrFromInterface(this._COMBvrPtr.RunOnce());
- }
- }
-